<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shyza
  Date: 2023/6/19
  Time: 23:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1">
        <form action="/add" method="post">
        <tr>
            <td>姓名</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>年龄</td>
            <td><input type="text" name="age"></td>
        </tr>
        <tr>
            <td>身份</td>
            <td>
                <select name="rankId">
                    <option>请选择</option>
                        <c:forEach items="${list}" var="r">
                            <option value="${r.rankId}">${r.type}</option>
                        </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>住址</td>
            <td><input type="text" name="address"></td>
        </tr>
            <tr>
                <td colspan="2"><input type="submit" value="提交"></td>
            </tr>
        </form>
    </table>
</body>
</html>
